package com.nut.service;

import com.nut.pojo.Book;
import com.nut.pojo.Page;

import java.util.List;
import java.util.Map;

public interface BookService {

    public void addBook(Book book);

    public void deleteBookById(Integer id);

    public void updateBook(Book book);

    public Book queryBookById(Integer id);

    public List<Book> queryBooks();

    public Page<Book> page(int pageNo, int pageSize);

    void updatePicture(Map map,int id);
    void downloadPicture(int id);
    public Page<Book> pageByName(int pageNo, int pageSize,String name);

}
